package java04;
//鼠标类
class Mouse implements InsertDraaawable{
    public void usb(){
        System.out.println("鼠标以连接！");
    }
}
//键盘类
class Keyboard implements InsertDraaawable{
    public void usb() {
        System.out.println("键盘以连接！");
    }
}
//显示器类
class Display implements InsertDraaawable{
    public void usb(){
        System.out.println("显示器以连接！");
    }
}
//打印机类
class Printer implements InsertDraaawable{
    public void usb(){
        System.out.println("打印机以连接！");
    }
}
//电脑测试类
public class Test02 {
    public static void main(String[] args){
        Laptop laptop01 = new Laptop("联想",16,new Mouse());
        laptop01.getUsb();
        Laptop laptop02 = new Laptop("联想",16,new Keyboard());
        laptop02.getUsb();
        Laptop laptop03 = new Laptop("联想",16,new Display());
        laptop03.getUsb();
        Laptop laptop04 = new Laptop("联想",16,new Printer());
        laptop04.getUsb();
    }
}
